package com.akkainaction.helloactor.actor;

import akka.actor.ActorRef;
import akka.actor.Props;
import akka.actor.UntypedActor;

public class ParentActor extends UntypedActor {

    public ActorRef childActorRef;

    @Override
    public void preStart() {
        childActorRef = getContext().actorOf(Props.create(ChildActor.class),"childActor");
        System.out.println("childActor path:"+childActorRef.path());
    }

    @Override
    public void onReceive(Object msg) {

    }
}
